<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="ice" uri="http://www.icesoft.com/icefaces/component"%>
<f:view>
    <ice:outputHtml>
        <ice:outputHead>
            <ice:outputStyle href="./xmlhttp/css/xp/xp.css"/>
            <link rel="stylesheet" type="text/css" href="menuStyl.css"/>
        </ice:outputHead>
        <ice:outputBody>
            <div class="container">
            <div class="header1" align="center"><ice:outputText value="Twoja historia" rendered="#{!betslipList.pending}"/>
            <ice:outputText value="Aktualne zakłady" rendered="#{betslipList.pending}"/></div>
            <ice:form>
            <div align="center">
                <ice:dataTable value="#{betslipList.list}" var="oneBetslip">
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Mecz"/>
                        </f:facet>
                        <ice:panelGroup style="width: 130px;"><%--styleClass="#{filesRecord.rowStyleClass}"--%>
                            <ice:outputText value="#{oneBetslip.matchName}"/>
                        </ice:panelGroup>
                    </ice:column>
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Nazwa rynku"/>
                        </f:facet>
                        <ice:panelGroup style="width: 130px;"><%--styleClass="#{filesRecord.rowStyleClass}"--%>
                            <ice:outputText value="#{oneBetslip.marketName}"/>
                        </ice:panelGroup>
                    </ice:column>
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Wybór"/>
                        </f:facet>
                        <ice:panelGroup style="width: 130px;"><%--styleClass="#{filesRecord.rowStyleClass}"--%>
                            <ice:outputText value="#{oneBetslip.selection}"/>
                        </ice:panelGroup>
                    </ice:column>
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Kurs"/>
                        </f:facet>
                        <ice:panelGroup style="width: 130px;"><%--styleClass="#{filesRecord.rowStyleClass}"--%>
                            <ice:outputText value="#{oneBetslip.odds}"/>
                        </ice:panelGroup>
                    </ice:column>
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Stawka"/>
                        </f:facet>
                        <ice:panelGroup style="width: 130px;"><%--styleClass="#{filesRecord.rowStyleClass}"--%>
                            <ice:outputText value="#{oneBetslip.stake}"/>
                        </ice:panelGroup>
                    </ice:column>
                    <ice:column>
                        <f:facet name="header">
                            <ice:outputText value="Id"/>
                        </f:facet>
                        <ice:panelGroup style="width: 130px;"><%--styleClass="#{filesRecord.rowStyleClass}"--%>
                            <ice:outputText value="#{oneBetslip.id}"/>
                        </ice:panelGroup>
                    </ice:column>
                </ice:dataTable>
            <ice:commandButton value="Powrót" action="back"/>
            </div>
            </ice:form>
            </div>
        </ice:outputBody>
    </ice:outputHtml>
</f:view>